need to finish the final loop
finishing the final loop