fix bugs and add the default information