new snippet and chrome function