use .last to get previous DeviceHistory