added ability to add caption