format code
format code and make match...case more simple