update readme
fix check() function