finished in-out analysis