clean up code to find error
found error in Child, changing location more than once