update class hierarchy