started snap function