added numpy mean for arrays