changed to finished version of the program