fixed small errors
removed print statement