updated trapezoid centriod method