add vector modulte function