choose version class dynamically