added missing cast