added dump function