commented logic which does ads is invisible