removed unnecessary debug prints