bug fix: incorrect name
a lot of bug fixes on first review
a lot of bug fixes on second review
third bug fix
added some debug output