fixup! added substr scalar function