added graph metric generation