added expect in callback