remove debugging logic error