added dirty state array