add and update device methods updated