removed debug printfs