add constant snippet