fix  is undefined method