remove unnecessary outputs