added check for post-data