updated put and update
fixed typo