started using debug printIf properly