fixed some method.