added repeating args to functions