store generated id