how general helper and common file function works