addin font fonctionality and optimizing some functions