Snap line function was done