remove debug prints from segments