writing wait methods (part 1)