made the type declaration of modGS more readable