updated Smain