added null parent posibility