change the loop from 7 to 5