made checking required fields faster.