small optimisation, updated readme.md