replace routine for mesh processing