changing height to depth add height as actually height in 3D, now the device is a hypperrectangle