changed the name of the file, coverted the function into module