added removeChildAt function