add vector calculations.