using render correctly