modify structure and copy input metadata