changed the way permavector works