adding post method