remove useless return values from extensions