pull conditionals out into helper, add each conditionals