tweaked normalisation factor
3D output working :)