apply some last changes