remove Collections.forEach loop