update example and some fix