added complexGrid, which was missing for some reason