celaning and simplifying