added support for 1D points