adding assertion error explenation
changing randommatching output