added to addGroup method to prevent blank groups