add case-when expression