some changes in getData
rehash implemented but not added in functionality