removed cout statements