added contactId to case model