created another render function