statements detection