added severity code for stats