added additional methods in DataHandler class