get rank and initialize completed