added debug log