added check for single post