added gridmode