changed multiply and divide to use a scalar rather than another vector