removed comments and print statements