corrected post functionality