handling put requests