In some previous paragraph was shown that under certain circumstances some patterns would resemble patterns in metal shavings produced while passing of current through the conductor

Could you correct the punctuation please?
In some previous paragraph was shown, that under certain circumstances, some patterns would resemble patterns in metal shavings produced while passing of current through the conductor.