remove unneeded wait block