fixed bug, 3D now implemented