worked through conditionals