add some methods in local class