eos input modified
eos output implemented
eos output modified