consolidated conditionals into helpers