started hidden pair implemetation