modified addrgen