cleanup changes and apply code on dataset