handle if criteria null