re-written snippet v3