before finish