delete duplicated code
check weight of select group
add selection algorithm of select group