added method for getting rank list and indented some files