commonOutput function properly called