added check to see if ARGV is empty. clears it out if not