remove useless assertions