substitute values in pre/post