adding post-receiving function