update snippet and constants