added flat shading