Update eos.cpp