added smooth normals option