using ordinal() in enum