added the setDeviceCriteria methods