removed print statements + fixed a  missed log