divided a function