updated debug statements