updated readme file to use the new function