implemented functions to fill the dump and clear the dump