format the code and align

format the code and align