loop analysis