add predefined content+warning now in one function