If you declared reAggParent and initialized it to null before this block, you could use it here instead of parent and have it to use later.