in reply to Basic syntax problem

you have 43 "(" but only 40 ")" in your code snipet.
look for yourself where the 3 ")" are missing.