some codes and templates

some codes and templates