changed #caption to parameter