made this work
added debug statement