wrap a function to accept only three arguments