removed dump function