rm unnecessary boolean