added commits throughout the code