simplify the interface of a function