added more info to assertion error
handled assertion error