minor update mainly code style