remove put statement
updated version after removing put statement