added retrieve metadata