applying all final changes