added more debug lines