implemented recursion limit with fatal error