add changes for metadv approach