made only one loop