checking for dirty
checking for dirty