changed first comment to avoid unintended annoying warning about " global ".