okay, you're copypasting code here and it's bad, merge these two chunks. The amount of loops and the division of the reagents are a bit hardcoded but it can replaced easily.