changed method of displaying captions