simplify shapes script