Changes were made to program to make it run correctly