added a function to get normals