store samples in local state array