working code yet to do the number of rounds , needed a callback functionality