why are you creating an object instead of using a primitive here?