get last device