added conditional to device model. Passing tests