getRlen is added in worker2