extract output logic from Wrapper to Results