made the multiplier a variable instead of a magic number