added function to README