found logic error... yet to fix!