update example and means of init