update case classes