adding dirty flag to speed up performance