added persist snippet