added dump method