corrected assignment problem