adding debug prints