adding more debug statements