added code to EOS