parentAddress: usage of loop instead of hardcoded bs