removed unnecessary IIFEs