extracting useful info to be used to send alert