fixed the fucking loop