updates location when moves