finalizes changes