removed debug output and reduced frequency of puts