refine input-output