finish modal analysis