collection java instead of custom collection