added stat tracking