to util functions added, allIndicesOf, and toPointXYZ