location save method added