Using location replace