logic error in line 65