replace sequence with library version