finished output, logic error