learning mode and inheritance