leap: refactor pinch