removal of second trip to json