begin rspec
conert function to pass in only the options that are available