correcting puts/return error