bug fix to parent excluding code