make sure the class is vector