updated the codes and styles