paramaterized posting function