trying to figure out how to loop till one less.