minor java collections work