remove loop detection in parsing