changed all puts and deletes to posts