set constructor elements must be of ordinal type