removed debug prints.