some type cleanup within vector functions