adding fix method and update of rspec file