added simulation for "recursion"