replace panic with a println