modified delete to post