added extern globals in the constants file