improvement in mesh generator