invalidate method