finish sat and format code