wrote fix method for when there are too many rows with max assignments