add a remove() method, which apparently java 8 did not need