fixing varargs issue