removed cout debug statements