fixed code to send new post