checking group visibility too