adding debug prints.