updated number of arguments

STILL HAVE TO MAKE SEPERATE FUNCTION FOR VAR NUMBER OF FOR LOOPS