Add a space after if, and put curly braces around the body. Also, this covers more than your change, but can you rewrite the Range(0, filters.size()) this in function in while loops?