mostly staged but childElem function not working