a better solution to the inheritance issue fixed in the previous commit