fixed inverted conditional logic