fixed the put request