added additional metadata code