creating the mesh mode