fixed bug where a function with only repeating args would not work