added remove method to iterator (java7/8 problem)