adding debug output