boolean logic flipped. oops.