modified some code format