add response number to post function