pass parent element instead of null