adding debug output to see if this is an issue