fixed type error; expected Box rather than Option