ads set plugin and find divisors function