put comparison in right place
functions before conditionals