created function to use argc and argv - corrected quict condition