removing  boxing and unboxing unnecessary