must give a written notice to the entity: