adding samples and changing the eos output scheme