geting metadata and parse