use 'return inherit(....)' consistently