added deletion of vectors