change parent to parentNode