in the middle of making post func.