code finalized