remove unnecessary code. increase max devices.