separated local and global var calls