small change in allocatehardware js