private boolean compareTimeStamp(int ts1, int rk1, int ts2, int rk2) {
        if (ts1 > ts2) {
            return true;
        } else if (ts1 == ts2) {
            if (rk1 > rk2) {
                return true;
            }
        }
        return false;
    }