ending experiment functions