added functions in the file result