added appending of groups