grid constructor cleaned