finalized code box