fixed put and removed print statements