implemented missing grandType method
better error description
modified groupId