fixed PUT. Follow this example to fix the rest