fix loop2