add case snippet