done changes for different types of device