remove some boxing of primitive type