adjusted grid to always be square