removed unnecessary output code.