code refactoring for enhancement base on the ROS style