file function added
file function changed as static