update metafile
clean up code