avoiding sys-calls on trend-trend