change first_error() method to firstError()