remove needless temporary variable