updated output to be multiplied by magnitudes