oops had the logic flipped