adds debug prints