implemented some multipermutation functionalities