store calculation in variables + indentation + use each instead of inject