bug fixes for genning and group class