removes unnecessary boxing