make the function operate on dirty non new models