Loop is <= not just =