debug prints conditional in weak