began put request, and pep8-ed for niceness