removed debug printlines