removed print statemtns