loop for amount of results fixed