made rspec tests pass