code cleanup
implemented hidden_pair
.
.