added double checks for group compatibility