format code finished