make _render function more simple, improve efficient