remove undefined method 'try'