Reverting changes the program was not working