added mean axis value calculation