perms() working