fixed undefined method