remove unused variable in erGrouping()