fixed varargs issue