initial post functionality