replace $p with %args