changed device as a hypperrectangle , changed height to depth, keeping height as actually height in 3D