temporary variable created and 2 methods created