adding debug statements