Updaing main