declare global variables correct