refacto of my 3D stuffs