made changes to the file by adding the function