remove snapshot code