added globals definition