added method to post posts