removed recursion from data structure.