implemented vclass function