added prototyping to dump