improved for loop to get status, also changed amount of iterations