move some method to static in class