write funs do jobs