enhanced debug statement
added boolean