inherit from function