remove unnecessary temporary variable