debug lines fixed