fixed the program