remove unnecessary T=bool