remove useless fold