added setPermission