updated device to have accessed_at param