just minor refactor
add some java sets