added search options function