implement removeData method