changed GET to PATCH, and removed old code