format comment and rename method