invalidate method added