better post_experiment function