fixed typo in put fun()