added actual replacement of literal %'s