consistent use of TYPE and typeof