stat implementation