setType on package