fixed the midlevel analyzer