state changes corrected