finalized codes