add function to README