add post funtion