added debug output