Edited some part of indexOffer