fix for simplify