how to call a function with variable arguments of different data types