remove unused loopParent variable