functionality added to adapter class and hash2d