update

added a function for location options