Idk if this loop is okay or not