modified the output format of caption