add function to select baseclass