SD: almost almost. A bug in get pairs need to be fixed