added child-like render function - sped up loading time by 33%