finalized scripts