remove extra display of p in return value of compose_plot