removed print statements and useless code