cleaned up work on making replace respect styling info.