updated range of generate