updates location