remove useless capabilities