resolved the error and succesfully generated failure message