in the way to fix logic errors