changed z value for 32 layers