Remove for lops and use times and upto