added the function
updated readme