cleaned up the program