making a dump routine