replace curve generation with linear ramp and "clever" hack