changed mazegen -mike