simple logic to change companies ranks