add trapezoid, modify maths, parametrize ratio