working on snapping functions