don't juggle the $type variable