removed cout statements.