define properly and make a global