added grpsys function