now with waiting statement