use var controlPoint instead of pipe.controlPoints[ i ], see #170