loop was from 3-1000 shouldve been 3-999