correct 'output' referring to two different objects