finishing the program and debugging it now