Using the wrong logic