replaced all instances of native typeof with their _ alternatives