re-written snippet