refactoring TSTDataProvider observer methods
added replace  method