adding debug/logging statements