snapping technique