updating samples