update simple.cc