add a purge and solve   solvep