working on eq for statements with recursion