remove tofvector