debug prints removed