fixed the bug and made it work only for within-groups design