fix

program was looping sometimes