added cout for testing