cleaning and implementing devices section and its tests