removed print statements and extra commented code