dynamic allocation 3d array - added