remove undesirable boxing and unboxing