vector errors. Needs checking.