helps to put printing info before the failure