saving the type of point as well.