finish simulation