removed stat function