success and error updated