add back loop2 for backward compatibility