changed InvId type to charfield