refactor gridset