minor
minor
adapted for 3D
adapted for 3D