removed debug code, fixed indentation.