loop fixed