add query throwing machine