upgraded usage of the success function to match that of the error function