fixed unwieldy variable in controller