the groups() returned was itself in a tuple, therefore failed to function. This is fixed