minor refact on 3d