added support for different-dimensional points