updated with in-progress rspec testing