amended BI to pass rspec tests