remove beginpath