changes before adding grid