-removed debug prints