move mean fuction in utils folder