begin infererence