switched global data to hashed