use the correct form of the success and error calls.