changed input parameter objects to metadataobject