device adding logic change