fixed error of puts