added the 2 functions to file