remove assertions for isDirty function