adding debug