remove useless dicts