added warnings to caption tag