updating the samples with catergory