add metadata and change filename