adding cursor, fixing snapping bug