added gridtol const