added metadata access function