add kwargs to functions