refind removed the unneeded loops