use insured_devices.last instead of first