complete for simdist func