fixing some problems in the assignment algorithms
fixing some communication problems