fixed post to work properly