adjusts grid