got the logic backwards