choose top 10 in ResultSet
Dziala
some changes