addded proper inheritance methods on function objects