starting dump function