added in rspec for testing