reverting undefined checks