changed debug statements