rename 'type' to 't'