adding statistics tracking