split post to functions