flatten surf and compensated for it in depth average