new function for captions. per issue #11