change syntax back

I decided I did not like the single line of code because it was so long that it was not easily readable.