post function tested.