removed unnecessary line and renamed output