removing unused code
recursion hack