modify and optimize the guide