switch put and post