finished simplification, works great