change variable name from size -> beamLength for clarity