changes done for metadata insertion