added functions to file