wrap a function to cut of arguments