updating version number
improving code