rename @args to @pairs