Gen replacement library