removed invalidate() method