added some attribute to add function.