added cout debug