clean datastructure