added rank acknowledgement code