updatesmahcode