fixed loop to ignore argv[0]