raising a warning if the element is not found