add computeCurrentVisibility
added two history operation