added replace into for duplicate orders/keys