remove unnecessary check in listOutput in lab1_5