mesh preparation