sample and structure update