something wrong with jump logic