added replacement read in in bcg generation