added input vector conversion