replace cb with callback for consistency