changed undefined method to fix compile error