finish optimizer