map class and render class