adding class to caption