fixed mesh outputting