wrap a function to accept only four arguments