adding metadata retrieval method