updated to sample