delete stats code