best way to check for modification of self