How my function can take all arguments of another fucntion