format code
saving for self using