tests and cleaning up debug lines from the code