refactor \clip and \path