removing custom equations and equation fragments