modify on assigning operator and case syntax