refactor loop2