simplified locateOptions (only using one object not two)