refactor coarse_scale_op