major if test fix