changed statval to a string to make all of our lives easier