removed unused variables in permudist and permuvec