debug output was removed
tests cases were added back