* adjust getPreAndNext function.