fixed functions with repeating args so there repeating args are now optional