fix ordinal with functions