added vector method