remove dirty fields helper